package com.sky.controller.projectInterface.smartHealthcare;

import com.sky.pojo.SmartMedicalDoctorInfo;
import com.sky.pojo.SmartMedicalHospitalNews;
import com.sky.pojo.SmartMedicalPatientVisit;
import com.sky.result.Result;
import com.sky.service.SmartHealthcareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ssm
 * @version v1.0
 * @ClassName c
 * @Date: 2025/9/2 14:20
 * @Description: 描述
 */
@Api(tags = "智慧医疗")
@RestController
@RequestMapping("/pojo")
public class SmartHealthcareController {
    @Autowired
    private SmartHealthcareService smartHealthcareService;

    @ApiOperation("智慧医疗病人拜访信息接口")
    @GetMapping("/patient")
    public Result<List<SmartMedicalPatientVisit>> patient(){

        return Result.success(smartHealthcareService.getPatientList());
    }

    @ApiOperation("获取医院新闻")
    @GetMapping("/hotelNews")
    public Result<List<SmartMedicalHospitalNews>> hotelNews(){
        return Result.success(smartHealthcareService.getHotelNewsList());
    }

    @ApiOperation("获取医生信息")
    @GetMapping("/doctorInfo")
    public Result<List<SmartMedicalDoctorInfo>> doctorInfo(){
        return Result.success(smartHealthcareService.getDoctorInfoList());
    }

}
